package com.vinhvt.effiport.financial.ep.mapper;

import java.util.List;

import com.vinhvt.effiport.algorithm.genetic.mapper.*;
import com.vinhvt.effiport.financial.ep.Asset;


public class EffiPortMapItem extends MapItem{	
	private List<Double> lstRateOfReturn = null;
	
	public EffiPortMapItem(Asset asset) {
		setName(asset.getSymbol());
		setRateOfReturnList(asset.getRateOfReturnList());
	}
		
	public void setRateOfReturnList(List<Double> variance) {
		this.lstRateOfReturn = variance;
	}
	public List<Double> getRateOfReturnList() {
		return lstRateOfReturn;
	}
	
	@Override
	public String toString() {
		String result = "";
		
		result += this.getName() + ":";
		for(int i = 0; i < this.lstRateOfReturn.size(); i++) {
			result += this.lstRateOfReturn.get(i) + "   ";
		}
		
		return result;
	}
}
